package com.example.studykt.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.studykt.R;
import com.example.studykt.entity.Databus;


/**
 * on 2019/9/21
 */
public class SmsAdapter extends BaseQuickAdapter {

    public SmsAdapter() {
        super(R.layout.adapter_sms);
    }

    @Override
    protected void convert(BaseViewHolder helper, Object item) {
        Databus bean=(Databus)item;

        TextView iphone=helper.getView(R.id.iphone);
        TextView time=helper.getView(R.id.time);
        TextView boby=helper.getView(R.id.boby);

        iphone.setText("发件人手机:"+bean.getAddress());
        time.setText("日期:"+bean.getDate());
        boby.setText("短信内容:"+bean.getBody());
    }


}
